<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->

<title>notimeout</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_002_001_652">&nbsp;</a>NAME</h4><blockquote>
notimeout, timeout, wtimeout - control blocking on input
</blockquote><h4><a name = "tag_002_001_653">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="curses.h.html">curses.h</a>&gt;

int notimeout(WINDOW *<i>win</i>, bool <i>bf</i>);

void timeout(int <i>delay</i>);

void wtimeout(WINDOW *<i>win</i>, int <i>delay</i>);
</code>
</pre>
</blockquote><h4><a name = "tag_002_001_654">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>notimeout()</i>
function specifies whether Timeout Mode or No Timeout Mode is in effect for
the screen associated with the specified window.
If <i>bf</i> is TRUE, this screen is set to No Timeout Mode.
If <i>bf</i> is FALSE, this screen is set to Timeout Mode.
The initial state is FALSE.
<p>
The
<i><a href="timeout.html">timeout()</a></i>
and
<i>wtimeout()</i>
functions set blocking or non-blocking read for the current or specified window
based on the value of <i>delay</i>:
<dl compact>

<dt><i>delay</i> &lt; 0<dd>One or more blocking reads (indefinite waits for input) are used.

<dt><i>delay</i> = 0<dd>One or more non-blocking reads are used.  Any Curses
input function will fail
if every character of the requested string is not immediately available.

<dt><i>delay</i> &gt; 0<dd>Any Curses input function blocks for <i>delay</i> milliseconds and fails if
there is still no input.

</dl>
</blockquote><h4><a name = "tag_002_001_655">&nbsp;</a>RETURN VALUE</h4><blockquote>
Upon successful completion, the
<i>notimeout()</i>
function returns OK.  Otherwise, it returns ERR.
<p>
The
<i><a href="timeout.html">timeout()</a></i>
and
<i>wtimeout()</i>
functions do not return a value.
</blockquote><h4><a name = "tag_002_001_656">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_002_001_657">&nbsp;</a>SEE ALSO</h4><blockquote>
<xref href=terminalinput><a href="intov.html#tag_001_005">
Input Processing
</a></xref>,
<i><a href="getch.html">getch()</a></i>,
<i><a href="halfdelay.html">halfdelay()</a></i>,
<i><a href="nodelay.html">nodelay()</a></i>,
<i><a href="curses.h.html">&lt;curses.h&gt;</a></i>,
<b>XBD</b> specification, <a href="../xbd/termios.html#tag_008_002"><b>Parameters that Can be Set</b>&nbsp;</a> .
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
